﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Beryl.Util
{
    public class LogUtil
    {
        private static LogWriter _infoWriter = new LogWriter(LogType.Info);

        private static LogWriter _debugWriter = new LogWriter(LogType.Debug);

        private static LogWriter _errorWriter = new LogWriter(LogType.Error);

        //写操作日志
        public static void Log(string log)
        {
            _infoWriter.WriteLog(log);
        }

        //写调试日志
        public static void Debug(string log)
        {
            _debugWriter.WriteLog(log);
        }

        //写错误日志
        public static void Error(string log)
        {
            _errorWriter.WriteLog(log);
        }

        public static void Error(string log, string v)
        {
            _errorWriter.WriteLog(log);    
        }
    }
}